package com.nbjtjc.common.exception;

public class ValidateException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 500;

    public ValidateException() {
    }

    public ValidateException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public ValidateException(String message) {
        super(message);
        this.msg=message;
    }

    public ValidateException(String message, Throwable cause) {
        super(message, cause);
        this.msg=message;
    }

    public ValidateException(Throwable cause) {
        super(cause);
    }

    public ValidateException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.msg=message;
    }
}
